import torch
print(torch.device('cpu'))  # 应输出 cpu
print(torch.__version__)    # 应输出 2.3.0